package com.digital.smartgrow.service.business;

import com.digital.smartgrow.dto.business.StartUpDto;
import com.digital.smartgrow.dto.business.UpJobPageDTO;
import com.digital.smartgrow.vo.businesscenter.MeUpJobInfoVo;
import com.digital.smartgrow.vo.businesscenter.MeUpJobVo;
import com.digital.smartgrow.vo.businesscenter.UpJobVo;

import java.util.List;

/**
 * Created by SunYuechao on 2022/7/13 下午2:34
 */
public interface UpAskService {
    /**
     * 根据选择的晋级ID 获取下一个审批流程是角色，还是人员
     * @param upJobId
     * @return
     */
    Object getIsRole(Integer upJobId);



    /**
     * 开始申报数据，生成申报数据、基础数据，及流程数据
     * @param upId  申报项ID
     * @return
     */
    Object startUp(Integer upId);

    /**
     * 通过审批，并指定下一个审批人
     * @param jobLogId
     * @param checkId
     * @return
     */
    Object updateProcess(Integer jobLogId, Integer checkId,String checkContent);

    /**
     *  打回
     * @param jobLogId
     * @return
     */
    Object callBackProcess(Integer jobLogId,String checkContent);

    /**
     * 拒绝
     * @param jobLogId
     * @return
     */
    Object deleteProcess(Integer jobLogId,String checkContent);

    /**
     * 打回重新申报
     *
     * @param jobLogIdOld
     * @param upId
     * @return
     */
    Object restUp(Integer upId, Integer jobLogIdOld);

    List<UpJobVo> jobList(UpJobPageDTO upJobPageDTO);

    Object startUpOne(StartUpDto startUpDto);

    List<MeUpJobVo> myJobList(UpJobPageDTO upJobPageDTO);
    MeUpJobInfoVo myJobInfo(Integer upBaseId);
}
